package singleton.demo2;

import singleton.demo1.MyRunnable;

public class Test {
    public static void main(String[] args) {

        JiFactory jiFactory = JiFactory.getInstance();
        JiFactory jiFactory2 = JiFactory.getInstance();
        JiFactory jiFactory3 = JiFactory.getInstance();

        System.out.println(jiFactory);
        System.out.println(jiFactory2);
        System.out.println(jiFactory3);
//        MyRunnable myRunnable = new MyRunnable();
//
//        Thread thread1 = new Thread(myRunnable);
//        Thread thread2 = new Thread(myRunnable);
//        Thread thread3 = new Thread(myRunnable);
//        Thread thread4 = new Thread(myRunnable);
//        Thread thread5 = new Thread(myRunnable);
//
//        thread1.start();
//        thread2.start();
//        thread3.start();
//        thread4.start();
//        thread5.start();
    }
}
